package com.easonji.attendance.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 加班状态
 * </p>
 *
 * @author easonji
 * @since 2018-09-28
 */

@TableName("att_overtime_state")

public class OvertimeState extends Model<OvertimeState> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ots_id", type = IdType.AUTO)
    private Integer otsId;

    @TableField("ots_overtime")
    private Integer otsOvertime;

    @TableField("ots_state")
    private Integer otsState;

    @TableField("ots_datetime")
    private Date otsDatetime;

    @TableField("ots_auditor")
    private Integer otsAuditor;

    @TableField("ots_opinion")
    private String otsOpinion;

    public Integer getOtsPost() {
        return otsPost;
    }

    public void setOtsPost(Integer otsPost) {
        this.otsPost = otsPost;
    }

    @TableField("ots_post")

    private Integer otsPost;



    public Integer getOtsId() {
        return otsId;
    }

    public void setOtsId(Integer otsId) {
        this.otsId = otsId;
    }
    public Integer getOtsOvertime() {
        return otsOvertime;
    }

    public void setOtsOvertime(Integer otsOvertime) {
        this.otsOvertime = otsOvertime;
    }
    public Integer getOtsState() {
        return otsState;
    }

    public void setOtsState(Integer otsState) {
        this.otsState = otsState;
    }
    public Date getOtsDatetime() {
        return otsDatetime;
    }

    public void setOtsDatetime(Date otsDatetime) {
        this.otsDatetime = otsDatetime;
    }
    public Integer getOtsAuditor() {
        return otsAuditor;
    }

    public void setOtsAuditor(Integer otsAuditor) {
        this.otsAuditor = otsAuditor;
    }
    public String getOtsOpinion() {
        return otsOpinion;
    }

    public void setOtsOpinion(String otsOpinion) {
        this.otsOpinion = otsOpinion;
    }

    @Override
    protected Serializable pkVal() {
        return this.otsId;
    }

    @Override
    public String toString() {
        return "OvertimeState{" +
        "otsId=" + otsId +
        ", otsOvertime=" + otsOvertime +
        ", otsState=" + otsState +
        ", otsDatetime=" + otsDatetime +
        ", otsAuditor=" + otsAuditor +
        ", otsOpinion=" + otsOpinion +
        "}";
    }
}
